/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase202202 - ForIn1
 * <p>Powered by Lisi On 2022-06-01 17:37:31
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class ForIn1 {
    public static void main(String[] args) {
        //声明一个int数组，并初始化赋值,数组有通过元素的下标访问，下标是从0 1 2
        int[] nums = new int[]{10, 20, 30, 40, 50};
        for(int t : nums){
            System.out.println(t);
        }
    }
}
